import React, { Component } from "react";
import "./card.less";

export default class Card extends Component {
  render() {
    // console.log(this.props);
    return (
      <div className="card" style={{ backgroundColor: this.props.bgColor }}>
        <div className="card-title">{this.props.title}</div>
        <div className="card-content">{this.props.children}</div>
      </div>
    );
  }
}
